// components/sub-cpns/sub-cpns.js
Component({
  properties: {
    itemData: {
      type: String,
      value: "默认标题"
    }
  },

  data: {
    value: "Component trigger-event data的值"
  },

  lifetimes: {
    attached() {
      console.log("子组件接受: ", this.properties.itemData);
    }
  },

  /**
   * Component methods
   */
  methods: {
    onTrigger() {
      this.triggerEvent("trigger-event", this.value)
    }
  },
  
})